﻿using System;
using System.Collections.Generic;
using System.Text;

namespace BCAMap.AMap.Dto
{
    /// <summary>
    /// 距离测量返回结果对象
    /// </summary>
    public class DirectionResponseDto
    {
        /// <summary>
        /// 返回结果状态值，值为0或1，0表示请求失败；1表示请求成功
        /// </summary>
        public string status { get; set; }
        /// <summary>
        /// 返回状态说明，status为0时，info返回错误原因；否则返回“OK”。详情参阅info状态表
        /// </summary>
        public string info { get; set; }
        /// <summary>
        /// 距离信息列表
        /// </summary>
        public DirectionResponseResultDto Route { get; set; }
    }
    /// <summary>
    /// 测量距离结果对象
    /// </summary>
    public class DirectionResponseResultDto
    {
        /// <summary>
        /// 起点坐标序号（从1开始）
        /// </summary>
        public string origin { get; set; }
        /// <summary>
        /// 终点经纬度
        /// </summary>
        public string destination { get; set; }
        /// <summary>
        /// 算路方案详情
        /// </summary>
        public IEnumerable<PathDto> Paths { get; set; }
    }

    public class PathDto
    {
        /// <summary>
        /// 方案距离，单位：米
        /// </summary>
        public string distance { get; set; }
 
        public IEnumerable<StepDto> steps;

    }

    public class StepDto
    {

        /// <summary>
        /// 骑行指示
        /// </summary>
        public string instruction { get; set; }
        /// <summary>
        /// 进入道路方向
        /// </summary>
        public string orientation { get; set; }
        /// <summary>
        /// 分段道路名称
        /// </summary>
        public string road_name { get; set; }
        /// <summary>
        /// 分段距离信息
        /// </summary>
        public string step_distance { get; set; }
    }
}
